Aubery, Antoine, avocat et historien